package com.fancy.exception;

import com.fancy.emums.StatusEnum;

/**
 * 商城自定义异常处理
 * Created by FancyFong on 7/9/2017.
 */
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(StatusEnum statusEnum) {
        super(statusEnum.getMessage());
        this.code = statusEnum.getCode();
    }
}
